/*************************************************************************
 * File Name   : info.h
 * Brief       :
 * Change Logs :
 * Date           Author       Notes
 * 2022\03\11     liqi         The first version.
*************************************************************************/

#ifndef _INFO_H
#define _INFO_H
struct json_type
{
    char datetime[32];
    struct
    {
        float id0;
        float id1;
        float id2;
        float id3;
        float id4;
    } data;
};

#define JSON_FMT \
"{\"t\":\"%s\",\
\"d\":[\
{\"n\":\"T('C)\", \"v\":%4.2f},\
{\"n\":\"Rand1\", \"v\":%4.2f},\
{\"n\":\"Rand2\", \"v\":%4.2f},\
{\"n\":\"Rand3\", \"v\":%4.2f},\
{\"n\":\"Rand4\", \"v\":%4.2f}\
]}"

char *get_info(void);
#endif


